import request from '@/utils/request'

// 查询用户和契约的关系列表
export function listCustomer_contract(query) {
  return request({
    url: '/lease/customer_contract/list',
    method: 'get',
    params: query
  })
}

// 查询用户和契约的关系详细
export function getCustomer_contract(contractId) {
  return request({
    url: '/lease/customer_contract/' + contractId,
    method: 'get'
  })
}

// 新增用户和契约的关系
export function addCustomer_contract(data) {
  return request({
    url: '/lease/customer_contract',
    method: 'post',
    data: data
  })
}

// 修改用户和契约的关系
export function updateCustomer_contract(data) {
  return request({
    url: '/lease/customer_contract',
    method: 'put',
    data: data
  })
}

// 删除用户和契约的关系
export function delCustomer_contract(contractId) {
  return request({
    url: '/lease/customer_contract/' + contractId,
    method: 'delete'
  })
}
